package com.example.ajaxdemo.controller;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * @ClassName DemoScheduling
 * @Description
 * @Author zhangsw
 * @Date 2020/11/28 15:17
 * @Version 1.0
 */
@Controller
@EnableScheduling
public class DemoScheduling {

//    @Scheduled(cron = "0/5 * * * * ?")
//    public void test1() {
//        System.err.println("执行");
//    }
}
